package com.base.comm;

import com.base.service.ServiceCallService;
import lombok.extern.log4j.Log4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * @Date: 2020/6/18 11:17
 * @Description: 回调地址：通知话单
 */
@Log4j
@Component
public class ServiceUrls {
    //配置的话单参数
    public static String servicePrefix = "qrpt:";

    public static ServiceUrls serviceUrls;

    @Autowired
    public ServiceCallService serviceCallService;


    @PostConstruct
    public void init() {
        serviceUrls = this;
    }


    //根据话单获得
    public static String getUrls(String fwqIp) {
        return serviceUrls.serviceCallService.selectByPrefix(fwqIp);
    }
}
